package com.gzyz.cheetah.entity.table;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * <p>
 * 管理员表
 * </p>
 *
 * @author xclhove
 * @since 2023-11-06
 */
@Data
@TableName("admin")
@ApiModel(value = "Admin对象", description = "管理员表")
public class Admin {
    
    @ApiModelProperty(value = "管理员id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty(value = "管理员名")
    private String username;

    @JsonIgnore
    @ApiModelProperty(value = "密码")
    private String password;
    
    @ApiModelProperty(value = "邮箱")
    private String email;
    
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;
    
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;
}
